package learn.basics.scanner;

import java.util.Scanner;

class Demo01Scanner{
    public static void Test(){
        Scanner scanner = new Scanner(System.in);

        int num=scanner.nextInt();
        System.out.println(num);
        String s=scanner.next();
        System.out.println(s);
    }
}

class Demo02ScannerSum{
    public static void Test(){
        Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        int b=scanner.nextInt();

        int c=a+b;
        System.out.println(c);
    }
}



public class TestScanner {

    public static void main(String[] args) {

        Demo01Scanner.Test();

        Demo02ScannerSum.Test();

    }
}
